package com.com.effectivejava.enuml;

/**
 * Created by User on 04/07/2014.
 */
public class EnumConstants {

    // old fashioned way of doing representing constants.
    public static final int APPLE_FUJI = 0;
    public static final int APPLE_PIPIN = 1;
    public static final int APPLE_GRANNY_SMITH = 2;

    // correct way of doing it is.
    public enum  Apple {FUJI, POPON, GARNNY_SMITH};

    public static void main(String... a){
        System.out.println(Apple.FUJI.toString());
    }
}
